package tchk.xyz.lingyuntutorminiprogram.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tchk.xyz.lingyuntutorminiprogram.dto.TeacherAuditDTO;
import tchk.xyz.lingyuntutorminiprogram.dto.TeacherCardDTO;
import tchk.xyz.lingyuntutorminiprogram.dto.TeacherSearchDTO;
import tchk.xyz.lingyuntutorminiprogram.entity.SysUser;
import tchk.xyz.lingyuntutorminiprogram.entity.TeacherInfo;

import java.util.Map;


@Mapper

public interface TeacherInfoMapper extends BaseMapper<TeacherInfo> {

    IPage<TeacherAuditDTO> findPendingTeachers(IPage<TeacherAuditDTO> page);

IPage<TeacherCardDTO> searchTeachers(IPage<TeacherCardDTO> page, @Param("dto") TeacherSearchDTO dto);

}